package HLLib.socket;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;
import HLCode.HLObject;
import HLLib.json.HLJSONObject;

public class HLSocketObject extends HLLibObject {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_SOCKET, HLClassManager_H.LIB_CLASS_SOCKET_SocketObject);
    }

    public HLObject GetObject(int index) {
        switch (index) {
        case 0: {
            return json;
        }
        case 1: {
            return data;
        }
        }
        return null;
    }

    public void SetObject(int index, HLObject value) {
        switch (index) {
        case 0: {
            json = (HLJSONObject) value;
            return;
        }
        case 1: {
            data = value;
            return;
        }
        }
    }

    public HLJSONObject json;

    public HLObject data;
}
